---
layout: page
author: Wu Zhangjin
title: 作者
tagline: 展示原创作者及其贡献
header: Post By Authors
permalink: /authors/
comments: false
---
{% include JB/setup %}

{% assign posts_group_by_author = site.posts | group_by:"author" %}
{% assign posts_sort_by_author = posts_group_by_author | sort:"name" %}

{% assign x_label = '作者' %}
{% assign y_label = '贡献' %}

{% for post_author in posts_sort_by_author %}
  {% assign author_name = post_author.name %}
  {% assign post_author_name = post_author.name | replace:' ','-' %}
  <h3 id="{{ post_author_name | downcase | replace:' ','-' | replace:'/','-' }}-ref"><a id="author-{{post_author_name}}" title="点击查看作者详细信息">{{ post_author.name }}</a> <sup>({{ post_author.items.size }})</sup></h3>

  <div id="author-box-wrap-{{ post_author_name }}" class="author-box-wrap" style="display:none">
  {% assign author_box_id = post_author_name %}
  {% assign author_box_ref = post_author_name | prepend:"-" %}
  {% assign author_box_visible = "style='display: block;'" %}
  {% include widgets/author_box %}
  <script>
  jQuery(document).ready(function(){
    var author_box = $('#author-box-wrap-{{ post_author_name }}');
    $("#author-{{ post_author_name }}").click(function(e){
           var status = author_box.css('display');
           if (status == "none") {
               author_box.show();
           } else {
               author_box.hide();
           }
    });
  });
  </script>
  </div>

  <ul>
    {% for post in post_author.items %}

    {% if post.draft and post.draft == true %}
      {% continue %}
    {% endif %}

    <li><a href="{{ post.url }}">{{ post.title }}</a></li>
    {% endfor %}
  </ul>
{% endfor %}

{% assign list = posts_group_by_author | sort:"size" | reverse %}
{% assign list_type = 'dict' %}

<h3>{{ x_label}}{{ y_label}}统计 <sup>({{ site.posts.size }})</sup></h3>
{% include widgets/svg_statistic %}
